package cn.com.connext.scrm.repository.master;


import cn.com.connext.scrm.domain.master.LorealCode;
import cn.com.connext.scrm.domain.master.WriteOffCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface LorealCodeRepository extends JpaRepository<LorealCode, Long>, JpaSpecificationExecutor {
    @Query(value ="select * from loreal_code where code = :code" , nativeQuery = true)
    LorealCode findByCode(@Param("code") String code);
}
